package com.xiaoxu.spzx.manager.mapper;

import com.xiaoxu.spzx.model.dto.system.SysUserDto;
import com.xiaoxu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:SysUserMapper
 * Description:
 *
 * @author: 徐廷泉
 * @Create 2024/1/14 10:39
 */
@Mapper
public interface SysUserMapper {

    // 查询数据库中是否存在该用户
    SysUser selectUserInfoByUserName(String userName);

    // 分页条件查询
    List<SysUser> selectByPage(SysUserDto sysUserDto);
    //用户管理 ->添加
    void save(SysUser sysUser);
    //修改
    void update(SysUser sysUser);
    //删除
    void deleteById(Long userId);
}
